package com.he.decoratormodel.component.concretecomponent;

import com.he.decoratormodel.component.Component;

/**
 * 被装饰类
 */
public class Person implements Component {

    private String name;

    public Person(String name) {
        this.name = name;
    }

    @Override
    public void puton() {
        System.out.println("装饰的" + name);
    }
}
